home *** CD-ROM | disk | FTP | other *** search
- //
- // standard.vs
- //
- // Pass through vertex shader.
- //
- // Copyright (c) 2006 Dan Gudmundsson
- //
- // See the file "license.terms" for information on usage and redistribution
- // of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- //
- // $Id: standard.vs,v 1.2 2006/01/27 15:17:56 dgud Exp $
- //
-
- varying vec2 w3d_uv;
- varying vec3 w3d_pos;
-
- void main(void)
- {
- // UV coords comes here since we are actually drawing on a texture
- w3d_uv = gl_Vertex.xy;
- // The vertex positions comes here in world space
- w3d_pos = gl_MultiTexCoord1.xyz;
-
- vec4 Position = gl_Vertex;
- gl_Position = gl_ModelViewProjectionMatrix * Position;
- }
-